package com.hkemmm.cola;

public class SalariedEmployee extends ColaEmployee{
    private double salar;       //月薪

    public SalariedEmployee(String name, int month, int salar) {
        super(name, month);
        this.salar = salar;
    }

    @Override
    public double getSalary(int month) {
        if (getMonth() == month){
            return this.salar + 100;
        }
        return salar;
    }
}
